package com.tristia.entity;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "tracks"
})
@XmlRootElement
public class Tracks {

    @XmlElement(name="track", required = true)
    protected List<Track> tracks;
    
    public Tracks() {
    }

    public Tracks(List<Track> tracks) {
    	setTracks(tracks);
	}

	public List<Track> getTracks() {
        if (tracks == null) {
        	tracks = new ArrayList<Track>();
        }
        return this.tracks;
    }

	public void setTracks(List<Track> tracks) {
		this.tracks = tracks;
	}

	@Override
	public String toString() {
		return (this.tracks != null) ? "{\"tracks\": " + this.tracks.toString() + "}" : "{tracks:[]}";
	}
}
